package com.wish.wishsystem_management.controller;


import com.wish.wishsystem_management.service.ITbSmsRecordsService;
import dto.systemDto.SysUserDto;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.util.Date;

/**
 * <p>
 * 短信记录 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-03-28
 */
@RestController
@RequestMapping("/tbSmsRecords")
public class TbSmsRecordsController {

    @Autowired
    ITbSmsRecordsService iTbSmsRecordsService;

    @Autowired
    RedisTemplate redisTemplate;

    /**
     * 发送手机验证码
     * @param dto
     * @return
     */
    @RequestMapping("/sendSms")
    public ResultEntity sendSms(@RequestBody SysUserDto dto){
        ResultEntity res = iTbSmsRecordsService.sendSms(dto);
        return res;
    }

}

